package com.bestcem.xm.wallet.grpc.client.converter.strategy;

import com.bestcem.bp.xm.user.grpc.v1.services.OrgWalletConfig;
import com.bestcem.xm.user.grpc.v1.enums.OrgWalletConfigRechargeLimitEnum;

/**
 * 公司钱包配置转换类-自定义转换
 *
 * @author wangyunyun <yunyun.wang@idiaoyan.com>
 * @version v1.0
 * @date 2022/5/13 11:50
 */
public interface OrganizationWalletConfigGrpcConvertStrategy {

    default OrgWalletConfigRechargeLimitEnum.OrgWalletConfigRechargeLimit orgWalletConfigRechargeLimitConveter(Integer value) {
        return OrgWalletConfig.newBuilder().setRechargeLimitValue(value).getRechargeLimit();
    }

}